Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / GetPdfEnum Method / GetPdfEnum<T>(IPdfDict,PdfName,T) Method
The current dictionary.
The key identifying the value.
The default value.

In This Topic
    GetPdfEnum<T>(IPdfDict,PdfName,T) Method
    In This Topic
    Gets the GrapeCity.Documents.Pdf.PdfEnum<TEnum> value associated with the specified key. If the value does not exist returns defValue.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetPdfEnum(Of T As {New, Struct})( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByVal defValue As T _
    ) As PdfEnum(Of T)
    public static PdfEnum<T> GetPdfEnum<T>( 
       IPdfDict dict,
       PdfName key,
       T defValue
    )
    where T: new(), struct

    Parameters

    dict
    The current dictionary.
    key
    The key identifying the value.
    defValue
    The default value.

    Type Parameters

    T

    Return Value

    The value associated with the specified key, or defValue.
    See Also